import request from '../utils/request';

/**
 * 查询会员列表
 * @param query
 * @returns {AxiosPromise}
 */
export const selectPage = query => {
    return request({
        url: 'rest/resume/selectPageResume',
        method: 'POST',
        data: query
    });
};


/**
 * 新增会员
 * @param query
 * @returns {AxiosPromise}
 */
export const addResume = query => {
    let url = 'rest/resume/insertResume';
    return request({
        url: url,
        method: 'POST',
        data: query
    });
};

/**
 * 编辑会员
 * @param query
 * @returns {AxiosPromise}
 */
export const updateResume = query => {
    return request({
        url: 'rest/resume/updateResume',
        method: 'POST',
        data: query
    });
};

/**
 * 删除会员
 * @param query
 * @returns {AxiosPromise}
 */
export const delResume = query => {
    return request({
        url: 'rest/resume/deleteResume',
        method: 'POST',
        data: query
    });
};

/**
 * 查询会员
 * @param query
 * @returns {AxiosPromise}
 */
export const getResumeByID = query => {
    return request({
        url: 'rest/resume/getResumeByID/' + query,
        method: 'POST',
    });
};